<div class="row my-4">
  <div class="col-md-12">
    <div class="card card-border-blue">
      <div class="card-header py-0 pb-3">
        <h4 class="h6 text-muted my-0 mt-3">标签</h4>
        <h6 class="h4 mb-0"><%= @repository.name %>:<%= @tag.name %></h6>
        <span class="text-muted small">镜像摘要: <%= @tag.content_digest %></span>
      </div>
      <div class="card-body">
        <div class="p-2">
            <% if Rails.configuration.x.public_registry_url %>
            <h5>详情</h5>

            <span class="text-muted small">拉取命令</span>
            <p class="mb-1 font-monospace"><%= pull_command(@repository.name, @tag.name) %></p>

            <hr />
          <% end %>

          <h5>支持架构</h5>
        </div>

        <ul class="nav nav-tabs">
          <% @tag.manifests.each do |manifest| %>
            <li class="nav-item">
              <%= link_to manifest.display_name, "##{dom_id(manifest)}", data: {"bs-toggle": "tab"}, class: {"nav-link": true, "active": @tag.manifests.first == manifest} %>
            </li>
          <% end %>
        </ul>

        <div class="tab-content">
          <% @tag.manifests.each do |manifest| %>
            <%= content_tag :div, id: dom_id(manifest), class: {"tab-pane": true, "container": true, "active": @tag.manifests.first == manifest} do %>
              <%= render manifest %>
            <% end %>
          <% end %>
        </div>
      </div>
    </div>
  </div>
</div>

<%= render "delete" if Rails.application.config.x.delete_enabled %>
